package com.lboyang.seckill.mapper;

import com.lboyang.seckill.entity.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lboyang.seckill.entity.vo.GoodsVo;
import org.apache.ibatis.annotations.Many;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Aiguodala
 * @since 2021-05-23
 */
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {

    /**
     * 查询商品列表
     * @return
     */
    List<GoodsVo> listGoodsVo();

    /**
     * 查询单个商品详情
     * @param goodsId
     * @return
     */
    GoodsVo getGoodsVoById(Long goodsId);
}
